package com.jinyang.jetpackdemo.bean;

/**
 * @Author: LiuJinYang
 * @CreateDate: 2021/12/2
 * @Description:
 */
public class Test {
    final String finalField = "final";
    static String staticField = "static";
    public String publicField = "public";
    protected String protectedField = "protected";
    String defaultField = "default";
    boolean man=true;
    private String privateField = "private";
}

//在Java中使用KSingleton
class TestMain {
    public static void main(String[] args)
    {
        KSingleton.INSTANCE.doSomething();//通过拿到KSingleton的公有单例类静态实例INSTANCE, 再通过INSTANCE调用单例类中的方法
    }
}